package com.back.model.reslut;

import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.Min;


@Data
public class PageParam {
    // @NotNull(message = "pageNum 不能为空")
    @Min(value = 1, message = "pageNum 不能小于1")
    @Digits(integer = 10, fraction = 0, message = "pageNum必须是一个整数")
    private Integer pageNum;


    @Min(value = 10, message = "pageSize 不能小于10")
    @Digits(integer = 10, fraction = 0, message = "pageSize必须是一个整数")
    private Integer pageSize;

    public PageParam(Integer pageNum, Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }

    public PageParam() {
    }
}
